package com.atguigu.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
/**
 * 传输对象，存储到es的数据
 */
@Data
public class SkuEsModel {
    private Long skuId;
    private Long spuId;
    private String skuTitle;    //标题
    private BigDecimal skuPrice;    //价格
    private String skuImg;    //图片
    private Long saleCount;    //销售数量
    private Boolean hasStock;    //是否有库存
    private Long hotScore;    //热度
    private Long brandId;    //品牌id
    private Long catalogId;    //分类id
    private String brandName;    //品牌名称
    private String brandImg;    //品牌图片
    private String catalogName;    //分类名称
    private List<Attrs> attrs;    //属性集合
    @Data
    public static class Attrs {
        private Long attrId;    //属性id
        private String attrName;    //属性名称
        private String attrValue;    //属性值
    }}
